package com.yjb.demo.tdengine.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Map;

/**
 *
 * @author yjb
 * @create 2025/1/3 15:03
 */
@Data
public class IotDeviceStateDTO {

    /**
     * 设备id
     */
    private Long id;

    /**
     * 采集的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ts;

    /**
     * 设备测点状态，key为列名，value为值
     */
    private Map<String, Object> properties;

}
